|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JTextField
com.sabro.jbusiness.gui.celleditors.DBCampoTexto
public class DBCampoTexto
Cria campo usado para alterar informações de campos do tipo texto
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
---|
javax.swing.text.JTextComponent.AccessibleJTextComponent, javax.swing.text.JTextComponent.DropLocation, javax.swing.text.JTextComponent.KeyBinding |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.BaselineResizeBehavior |
Field Summary |
---|
Fields inherited from class javax.swing.JTextField |
---|
notifyAction |
Fields inherited from class javax.swing.text.JTextComponent |
---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
Fields inherited from class javax.swing.JComponent |
---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
DBCampoTexto()
Inicializa o texto sem um valor pré-definido |
|
DBCampoTexto(SysFiltroCampo sysFiltroCampo)
Inicializa o texto com um valor de formatação de tabela de banco de dados Usa conexão da tabela ao qual o valor pertence |
|
DBCampoTexto(SysValor sysValor)
Inicializa o texto com um valor de formatação de tabela de banco de dados Usa conexão da tabela ao qual o valor pertence |
Method Summary | |
---|---|
void |
addCellEditorListener(javax.swing.event.CellEditorListener cellEditorListener)
Adiciona um novo listener do tipo "CellEditor" ao objeto |
void |
cancelCellEditing()
Desfaz as alterações do campo |
void |
editaCampoClear()
Edita o campo com limpeza prévia de seu conteúdo. |
void |
editaCampoCompleto()
Edita o campo em resposta ao pressionamento da tecla que comanda um pedido de edição (F2). |
void |
editaCampoLeft()
Edita o campo em resposta ao pressionamento da tecla de seta para a esquerda. |
void |
editaCampoRight()
Edita o campo em resposta ao pressionamento da tecla de seta para a direita. |
void |
editaCampoString(java.lang.String texto)
Inicia a edição do campo e coloca o texto informado no campo editado. |
void |
fireEditingCanceled()
Dispara um evento do tipo "EditingCanceled" para todos os listeners cadastrados |
void |
fireEditingStopped()
Dispara um evento do tipo "EditingStopped" para todos os listeners cadastrados |
javax.swing.event.CellEditorListener[] |
getCellEditorListeners()
Serve para obter a lista de listeners do tipo "CellEditor" existentes no objeto |
java.lang.Object |
getCellEditorValue()
|
javax.swing.JComponent |
getEditorComponent()
Fornece o componente que realmente trata as informações dentro do campo. |
java.lang.String |
getResultado()
Obtém o texto do item selecionado no campo |
SysFiltroCampo |
getSysFiltroCampo()
Obtém o sysFiltroCampo atualizado |
SysValor |
getSysValor()
Obtém o sysValor atualizado |
java.lang.Object |
getValor()
Obtém o valor atualizado do campo |
boolean |
isCellEditable(java.util.EventObject eventObject)
|
boolean |
isChanged()
Informa se o campo tem alteraçòes para serem gravadas |
void |
removeCellEditorListener(javax.swing.event.CellEditorListener cellEditorListener)
Remove um listener do tipo "CellEditor" ao objeto |
void |
setSysFiltroCampo(SysFiltroCampo sysFiltroCampo)
Iniciliza ou altera os parametros de funcionamento do texto |
void |
setSysValor(SysValor sysValor)
Iniciliza ou altera os parametros de funcionamento do texto |
void |
setTexto(java.lang.String texto)
|
void |
setTexto(java.lang.String texto,
boolean reset)
|
void |
setValor(java.lang.Object valor)
Iniciliza ou altera o valor do campo |
boolean |
shouldSelectCell(java.util.EventObject e)
|
boolean |
stopCellEditing()
Verifica se é possivel interromper a edição do campo |
Methods inherited from class javax.swing.JTextField |
---|
addActionListener, getAccessibleContext, getAction, getActionListeners, getActions, getColumns, getHorizontalAlignment, getHorizontalVisibility, getPreferredSize, getScrollOffset, getUIClassID, isValidateRoot, postActionEvent, removeActionListener, scrollRectToVisible, setAction, setActionCommand, setColumns, setDocument, setFont, setHorizontalAlignment, setScrollOffset |
Methods inherited from class javax.swing.text.JTextComponent |
---|
addCaretListener, addInputMethodListener, addKeymap, copy, cut, getCaret, getCaretColor, getCaretListeners, getCaretPosition, getDisabledTextColor, getDocument, getDragEnabled, getDropLocation, getDropMode, getFocusAccelerator, getHighlighter, getInputMethodRequests, getKeymap, getKeymap, getMargin, getNavigationFilter, getPreferredScrollableViewportSize, getPrintable, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedText, getSelectedTextColor, getSelectionColor, getSelectionEnd, getSelectionStart, getText, getText, getToolTipText, getUI, isEditable, loadKeymap, modelToView, moveCaretPosition, paste, print, print, print, read, removeCaretListener, removeKeymap, removeNotify, replaceSelection, select, selectAll, setCaret, setCaretColor, setCaretPosition, setComponentOrientation, setDisabledTextColor, setDragEnabled, setDropMode, setEditable, setFocusAccelerator, setHighlighter, setKeymap, setMargin, setNavigationFilter, setSelectedTextColor, setSelectionColor, setSelectionEnd, setSelectionStart, setText, setUI, updateUI, viewToModel, write |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DBCampoTexto()
public DBCampoTexto(SysValor sysValor)
public DBCampoTexto(SysFiltroCampo sysFiltroCampo)
Method Detail |
---|
public java.lang.Object getValor()
DBCampo
getValor
in interface DBCampo
public SysValor getSysValor()
DBCampo
getSysValor
in interface DBCampo
public SysFiltroCampo getSysFiltroCampo()
DBCampo
getSysFiltroCampo
in interface DBCampo
public void setValor(java.lang.Object valor)
DBCampo
setValor
in interface DBCampo
public void setSysValor(SysValor sysValor)
setSysValor
in interface DBCampo
sysValor
- public void setSysFiltroCampo(SysFiltroCampo sysFiltroCampo)
setSysFiltroCampo
in interface DBCampo
sysFiltroCampo
- public java.lang.String getResultado()
DBCampo
getResultado
in interface DBCampo
public java.lang.Object getCellEditorValue()
getCellEditorValue
in interface javax.swing.CellEditor
public void setTexto(java.lang.String texto)
public void setTexto(java.lang.String texto, boolean reset)
public boolean stopCellEditing()
stopCellEditing
in interface DBCampo
stopCellEditing
in interface javax.swing.CellEditor
public void cancelCellEditing()
DBCampo
cancelCellEditing
in interface DBCampo
cancelCellEditing
in interface javax.swing.CellEditor
public boolean isChanged()
DBCampo
isChanged
in interface DBCampo
public boolean isCellEditable(java.util.EventObject eventObject)
isCellEditable
in interface javax.swing.CellEditor
public boolean shouldSelectCell(java.util.EventObject e)
shouldSelectCell
in interface javax.swing.CellEditor
public javax.swing.JComponent getEditorComponent()
DBCampo
getEditorComponent
in interface DBCampo
public void editaCampoCompleto()
DBCampo
editaCampoCompleto
in interface DBCampo
public void editaCampoClear()
DBCampo
editaCampoClear
in interface DBCampo
public void editaCampoString(java.lang.String texto)
DBCampo
editaCampoString
in interface DBCampo
public void editaCampoRight()
DBCampo
editaCampoRight
in interface DBCampo
public void editaCampoLeft()
DBCampo
editaCampoLeft
in interface DBCampo
public void addCellEditorListener(javax.swing.event.CellEditorListener cellEditorListener)
addCellEditorListener
in interface DBCampo
addCellEditorListener
in interface javax.swing.CellEditor
public void removeCellEditorListener(javax.swing.event.CellEditorListener cellEditorListener)
removeCellEditorListener
in interface DBCampo
removeCellEditorListener
in interface javax.swing.CellEditor
public javax.swing.event.CellEditorListener[] getCellEditorListeners()
public void fireEditingStopped()
fireEditingStopped
in interface DBCampo
public void fireEditingCanceled()
fireEditingCanceled
in interface DBCampo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |